package com.jimmieran.springcloudtest.fegiontest.fegiontest.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-say-hello")
public interface FegionService {

    @RequestMapping(value = "/say",method = RequestMethod.GET)
    public String say(@RequestParam(value = "name") String name);
}
